projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df0bf72
)
Tidy return value of rtrim. From Fouts.
author
robertl
<robertl>
Tue, 7 Jan 2003 05:31:05 +0000
(
05:31
+0000)
committer
robertl
<robertl>
Tue, 7 Jan 2003 05:31:05 +0000
(
05:31
+0000)
defs.h
patch
|
blob
|
history
util.c
patch
|
blob
|
history
diff --git
a/defs.h
b/defs.h
index b0aa68ec7e1a048c787b33f090de86fe1e04f0ea..264ad482f0ae9279167aa4f83bd535c5c8ca7b8b 100644
(file)
--- a/
defs.h
+++ b/
defs.h
@@
-211,7
+211,7
@@
void printposn(const coord *c, int is_lat);
void *xcalloc(size_t nmemb, size_t size);
void *xmalloc(size_t size);
char *xstrdup(const char *s);
-void
*
rtrim(char *s);
+void rtrim(char *s);
/*
* PalmOS records like fixed-point numbers, which should be rounded
diff --git
a/util.c
b/util.c
index 83c3d65e81bb471fb15ba17321bf50af780b7382..c74a6084aceb3d02baa0b463ab1e8975c557c4d1 100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-60,11
+60,9
@@
xstrdup(const char *s)
return o;
}
-void
*
+void
rtrim(char *s)
{
- char *p;
-
while (*s) {
s++;
}
@@
-74,7
+72,6
@@
rtrim(char *s)
*s = 0;
s--;
}
-
}